Piwik\Period\Factory S

Total Complexity 30
Dependencies 12
Dependents 37
Total lines 162
Lines of code 84
Logical lines of code 52
Comment lines 47
Methods 10
Properties 0

Methods 10

Method Rating Maintainability Complexity Lines of code
build()
A
47 11 34
makePeriodFromQueryParams()
S
55 5 19
convertRangeToDateIfNeeded()
S
62 6 10
checkPeriodIsEnabled()
S
73 2 5
__construct()
S
91 1 2
shouldHandle()
S
100 1 0
make()
S
100 1 0
throwExceptionInvalidPeriod()
S
69 1 6
isPeriodEnabledForAPI()
S
75 1 4
getPeriodsEnabledForAPI()
S
76 1 4